import axios from './axios'
export function getComposition(){
    return axios({
        url:'/ingredient/ingredient'
    })
}
export function postComposition(params){
    return axios({
        method:'post',
        url:'/ingredient/ingredient',
        params
    })
}
export function deleteComsition(params){
    return axios({
        method:'delete',
        url:'/ingredient/ingredient',
        params
    })
}
export function putComposition(params){
    return axios({
        method:'put',
        url:'/ingredient/ingredient',
        params
    })
}
//导入
export function postExcelCom(data){
    return axios({
        method:'post',
        url:'/ingredient/importIngredient',
        data
    })
}